<template>
	<!-- #ifdef H5 -->
	<download-excel class="hide-on-phone" :fields="fields" :data="exportExcelData" :type="type" :name="filename">
		<button class="uni-button" type="primary" size="mini">{{$t('common.button.exportExcel')}}</button>
	</download-excel>
	<!-- #endif -->
</template>

<script>
	export default {
		props: {
			fields: {
				type: Object,
				required: true
			},
			exportExcelData: {
				type: Array,
				required: true
			},
			filename: {
				type: String,
				default: "export.xls"
			},
			type: {
				type: String,
				default: "xls"
			}
		},
		data() {
			return {}
		}
	}
</script>

<style>
</style>
